package com.mew.common.rest;

import io.netty.buffer.ByteBuf;
import lombok.*;

/**
 * @Description: 注册信息
 * @Author King.Song
 * @Date 2019/8/21 0021
 **/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StringMessage extends MewResponse<StringMessage> {

    private String s;
    
    @Override
    public void write(ByteBuf byteBuf) {

        writeString(byteBuf, this.s);
    }

    @Override
    public StringMessage read(ByteBuf b) {
        StringMessage message = new StringMessage();
        message.s = readString(b);
        return message;
    }

}
